package com.yuchen.advsdk.net;

import android.text.TextUtils;

public class API {


    public static API newInstance() {
        return  new API();
    }

//    public static String hostHttp = "http://192.168.2.196:9500/advertisementMachine";
    /**
     * http请求路径
     */
    public static String hostHttp = "http://service.starsaiot.com:9500/advertisementMachine";



    /**
     * 资源路径替换-目标
     */
    public static String repleaseResourcePathTarget = null;

    /**
     * 资源路径替换-值
     */
    public static String repleaseResourcePathContent = null;

    public String doRepleaseResourcePath(String url){
        if(TextUtils.isEmpty(repleaseResourcePathTarget) || TextUtils.isEmpty(repleaseResourcePathContent)){
            return url;
        }
        return url.replaceAll(repleaseResourcePathTarget,repleaseResourcePathContent);
    }




    public  String regist = hostHttp + "/server/deviceEnd/regist";
    /**
     * 过时
     */
    @Deprecated
    public  String getDeviceLayoutInfo = hostHttp+"/server/deviceEnd/getDeviceLayoutInfo";

    public  String getNewDeviceLayoutInfo = hostHttp+"/server/deviceEnd/getNewDeviceLayoutInfo";
    public  String authPath =hostHttp+ "/server/deviceEnd/getRSAText";
    public  String getDevicePlansVideoList = hostHttp+"/server/deviceEnd/getDevicePlansVideoList";

}
